﻿/**
* ...
* @author Default
*/

package controller;
import hails.HailsController;
import hails.HailsPhpRenderer;
import model.User;
import php.Lib;

class UserController extends HailsController {

	public function action_index() {
		var users = User.findAll();
		var huba = "HEISANN HOPPSANN";
		includePhp();
	}
	
	public function action_listSomeData() {
		/*Lib.println("USER / LISTING SOME DATA");
		var u:User = User.findById(1);
		Lib.println("Found: " + u.id + " = " + u.name + " from " + u.address);
		u.name = "ROY A G";
		u.save();
		trace("---");
		var u2:User = new User();
		u2.name = "KONGEN";
		u2.address = "SLOTTET";
		//u2.age = 100;
		u2.save();*/
	}
	
	public function action_test() {
		hasRendered = true;
		var huba = "heisann";
		includePhp();
	}
	
	function _lalala() {
		includePhp("test");
	}

	function action_heisann() {
		includePhp();
	}
	
}